cmake_minimum_required(VERSION 3.3)
project(2048)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${2048_SOURCE_DIR}/cmake")
set(BIN_DIR ${tests_SOURCE_DIR}/bin)
include_directories(src)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
file(GLOB_RECURSE 2048_SOURCES "src/*.cpp")
find_package(SDL2 REQUIRED)
find_package(SDL2_Image REQUIRED)
find_package(SDL2_ttf REQUIRED)
file(COPY fonts DESTINATION .)
include_directories(${SDL2_INCLUDE_DIR} ${SDL2_IMAGE_INCLUDE_DIR} ${SDL2_TTF_INCLUDE_DIR})
add_executable(2048 ${2048_SOURCES} )
target_link_libraries(2048 ${SDL2_LIBRARY} ${SDL2_IMAGE_LIBRARY} ${SDL2_TTF_LIBRARY})